const mongoose = require('mongoose')
const Schema = mongoose.Schema

//Create Schema

const ProfileSchema = new Schema ({

  date:{
    type: Date,
    default: Date.now
  },
  type:{
    type: String,
  },
  desc:{
    type: String
  },
  income:{
    type: String,
    required: true
  },
  expend:{
    type: String,
    required: true
  },
  cash:{
    type: String,
    required: true
  },
  remark:{
    type: String
  }
})

module.exports = Profile = mongoose.model('profile', ProfileSchema)